import org.json.simple.JSONObject;

public class TAWorker extends Thread {
	private String dataurl;
	private String dburl;
	private String dbName;
	private JSONObject taConfs;
	public String getDataurl() {
		return dataurl;
	}
	public void setDataurl(String dataurl) {
		this.dataurl = dataurl;
	}
	public String getDburl() {
		return dburl;
	}
	public void setDburl(String dburl) {
		this.dburl = dburl;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	
	public JSONObject getTaConfs() {
		return taConfs;
	}
	public void setTaConfs(JSONObject taConfs) {
		this.taConfs = taConfs;
		if (taConfs.containsKey("dataurl"))
		{
            this.setDataurl(taConfs.get("dataurl").toString());
		}
		if (taConfs.containsKey("dbname"))
		{
            this.setDbName(taConfs.get("dbname").toString());
		}
		if (taConfs.containsKey("dburl"))
		{
            this.setDburl(taConfs.get("dburl").toString());
		}
	}
	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}
	

}
